package com.han.bom;

import java.util.ArrayList;

/**
 * Represents a list of the students included in a professor's student list. 
 * @author Ric Janus Sapasap
 * @since JDK 1.7
 * @version 1.0
 * @see Student
 * @see Question
 *
 */
public class ClassListReport extends Report {
	
	private ArrayList<Student> classList;

	/**
	 * Retrieves an ArrayList of all the students included in this report
	 * 
	 * @return an ArrayList of Students
	 */
	public ArrayList<Student> getClassList() {
		return classList;
	}

	/**
	 * Sets this class' classList to the parameter
	 * 
	 * @param classList an ArrayList of Students
	 */
	public void setClassList(ArrayList<Student> classList) {
		this.classList = classList;
	}

	/**
	 * Sole Constructor
	 * 
	 * @param professor the professor generating the report
	 */
	public ClassListReport(Professor professor) {
		super(professor);
		this.classList = professor.getStudents();
	}
	
}
